# 测试相关的源文件
file(GLOB TESTS
  ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/../common/jsi_test/*.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/../common/jsiexecutor_test/*.cpp
  qjs_test/*.cpp
  ${CMAKE_CURRENT_SOURCE_DIR}/../../third_party/jsi/test/*.h
  ${CMAKE_CURRENT_SOURCE_DIR}/../../third_party/jsi/test/*.cpp
)

add_executable(jsiexecutor_quickjs_ut ${TESTS})
target_link_libraries(jsiexecutor_quickjs_ut
  gtest_main
  engine
  quickjs
  test_host
  test_native
  test_bridge
)
target_include_directories(jsiexecutor_quickjs_ut PRIVATE
  ${CMAKE_CURRENT_SOURCE_DIR}/../../third_party
  ${CMAKE_CURRENT_SOURCE_DIR}/../../src
)
